package org.linlinjava.litemall.web.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@Builder
public class WebOrderAccessoryDTO {
    @ApiModelProperty(value = "辅料id")
    @NotNull
    private Integer id;
    @ApiModelProperty(value = "购买数量")
    @NotNull
    private Integer number;

    @ApiModelProperty(value = "原价")
    private BigDecimal price;

    @ApiModelProperty(value = "选择数量")
    private BigDecimal selectedNum;

    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "单位")
    private String unit;
}
